﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using PPI.Entities.Lookup;
using VMind.Global;

namespace PPI.Client.Logic
{
    public class LXMissionStructures_PoleTreatments
    {
        public static List<EXMissionStructures_PoleTreatment> SelectAllIdName()
        {
            List<EXMissionStructures_PoleTreatment> _returnList = new List<EXMissionStructures_PoleTreatment>();
            DataTable dt = WebConsumer.WXMissionStructures_PoleTreatments.SelectAllIdName().Tables[0];
            foreach (DataRow dr in dt.Rows)
            {
                EXMissionStructures_PoleTreatment t = new EXMissionStructures_PoleTreatment();
                t.Id = ConvertHelper.ToInt32(dr["XMissionStructures_PoleTreatmentId"]);
                t.Name = dr["Name"].ToString();
                _returnList.Add(t);
            }
            return _returnList;
        }

    }

}
